from rest_framework import serializers
from goods.models import SKU

#商品列表序列化器
class SKUSerializer(serializers.ModelSerializer):
    class Meta:
        model = SKU
        fields = ['id','name','price','default_image_url','comments']




#热销商品序列化器
class HotSKUSerializer(serializers.ModelSerializer):

    class Meta:
        model = SKU
        fields = ['id','name','price','is_launched','comments']
